<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>test_coos_canvas</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<link href="../styles/util.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="../scripts/coos.js"></script>
<script type="text/javascript" src="../scripts/coos.ext.canvas.js"></script>
<script type="text/javascript">
function drowRoundedRect(){
	var ctx = coos.canvas.getContext('tutorial');
	ctx.fillStyle = "#ccc";  
	coos.canvas.roundedRect(ctx,12,12,150,150,15,"red");
	coos.canvas.roundedRect(ctx,19,19,150,150,9,"green");
	coos.canvas.roundedRect(ctx,53,53,49,33,10);
	coos.canvas.roundedRect(ctx,53,119,49,16,6);
	coos.canvas.roundedRect(ctx,135,53,49,33,10);
	coos.canvas.roundedRect(ctx,135,119,25,49,15);
}
</script>
<style type="text/css">
	canvas { border: 1px solid black; }
</style>
</head>
<body onload="drowRoundedRect();">
    <canvas id="tutorial" width="300" height="250"></canvas>
  </body>
</html>